package com.mycompany.project.server.model;
import java.util.LinkedList;
import java.util.List;

//Video class is specified by: url, Cartesian coordinates, duration time. 
//For each video, 0..n selections correspond.
public class VideoModel {
	private String url;
	private float duration;  //indicare la classe duration
	private List<SelectionModel>selections = new LinkedList<SelectionModel>();
	
	//Costructor
	public VideoModel(String url, float duration, List<SelectionModel> selections){
		super();
		this.url = url;
		this.duration = duration;
		this.selections=selections;
	}
	
	//Accessible methods
	public void setUrl(String url) {
		this.url = url;
	}
	public String getUrl() {
		return url;
	}
	
	public void setDuration(float duration) {
		this.duration = duration;
	}
	public float getDuration() {
		return duration;
	}

	public void setSelections(List<SelectionModel> selections) {
		this.selections = selections;
	}
	public List<SelectionModel>getSelections(){
		return selections;
	}
}





